package vip.source.pattern.part01.improve.factory;

import vip.source.pattern.part01.base.enums.AwardTypeEnum;
import vip.source.pattern.part01.improve.service.ICommodity;

public class StoreFactory {

    /** @Description: 通过枚举获取具体的商品实现类 */
    public ICommodity getCommodityService(Integer commodityType) {
        return AwardTypeEnum.getConcreteCommodity(commodityType);
    }
}
